package com.zsx.shopping.search.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SearchResultVo {

    private List<Sku> skus;

    private List<Brand> brands;

    private List<Attr> attrs;

    private Integer total;

    private Integer maxPageNum;

    private List<PriceRange> priceRanges;

    @Data
    public static class Sku {

        private Long id;

        private String name;

        private String defaultImage;

        private BigDecimal price;
    }

    @Data
    public static class Brand {

        private Long id;

        private String name;

        private String image;
    }

    @Data
    public static class Attr {

        private Long id;

        private String name;

        private List<String> values;
    }

    @Data
    public static class PriceRange {

        private Integer min;

        private Integer max;
    }

}
